<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Api</title>
</head>

<body>
    <div data-ng-app="myApp" data-ng-controller="myCtrl">
        <input type="text" data-ng-model="text" />
        <p>你输入的内容：{{text}}</p>
        <p>大写转换：{{upper(text)}}</p>
        <p>小写转换：{{lower(text)}}</p>
        <p data-ng-switch="isString(text)">
            是不是字符串：
            <span data-ng-switch-when="true">是</span>
            <span data-ng-switch-when="false">不是</span>
            <span data-ng-switch-when=""></span>
        </p>
        <p data-ng-switch="isNumber(text)">
            是不是数字：
            <span data-ng-switch-when="true">是</span>
            <span data-ng-switch-when="false">不是</span>
            <span data-ng-switch-when=""></span>
        </p>
    </div>
    <script src="../node_modules/angular/angular.min.js"></script>
    <script src="api.js"></script>
</body>

</html>
